#define _CRT_SECURE_NO_WARNINGS 1
#include<iostream>

using namespace std;

class A
{
public:
	A()
	{
		n++;
		m++;
	}

	A(A& aa)
	{
		n++;
		m++;
	}

	~A()
	{
		m--;
	}

	static void Print()
	{
		cout << n << " " << m << endl;
	}

private:
	static int n;
	static int m;
};

int A::n = 0;
int A::m = 0;

int main()
{
	A();
	A();
	A().Print();


	/*int i = 0;
	const int* b = &i;
	int c = 8;
	b = &c;*/
	return 0;
}